It's likely retracting in absolute from your last E value which is E6742.844

Try changing your end gcode to this

G92 E0
G1 E-8 F2400
G0 X5 Y215 F3000

and see if that resolves it